package com.woniu.service.Impl.backpage;

import com.woniu.dao.backpage.GoodsLogBackDao;
import com.woniu.service.backpage.IGoodsLogBackService;
import com.woniu.util.ResData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 李松桦
 * @data 2023/3/15 16:43
 */
@Service
public class GoodsLogBackServiceImpl implements IGoodsLogBackService {

    @Autowired
    GoodsLogBackDao goodsLogBackDao;
    /*查询商品浏览量*/
    @Override
    public ResData<?> queryGoodsLogCount() {
        Integer logCount = goodsLogBackDao.queryGoodsLogCount();
        return new ResData<>().ok(logCount);
    }
}
